import httpInstance from '@/utils/http'


export function getBannerAPI() {
    return httpInstance({
        url: '/content/banner/list'
    })

}

/**
 * @description: 获取热门影视数据
 * @param {*}
 * @return {*}
 */
export function getHotListAPI() {
    return httpInstance({
        url: '/content/movieBase/hotlist'
    })

}


/**
 * @description: 获取大分类下的数据
 * @param {*}
 * @return {*}
 */
export const findCategoryListAPI = (mt = "1-2") => { 
    return httpInstance({
        url: '/content/movieBase/list',
        params: {
            mt
        }
    })
}

/**
 * @description: 获取小分类下的数据
 * @param {*}
 * @return {*}
 */
export const findCategorySTAPI = (st = "1-2-1") => { 
    return httpInstance({
        url: '/content/movieBase/bystlist',
        params: {
            st
        }
    })
}


/**
 * @description: 根据大分类获取热门数据
 * @param {*}
 * @return {*}
 */
// http://127.0.0.1:63010/content/movieHot/list
export const findHotCategoryListAPI = (categoryId = "1-2") => { 
    return httpInstance({
        url: '/content/movieHot/list',
        params: {
            categoryId
        }
    })
}
/**
 * @description: 根据分类id的d分类数据
 * @param {*}
 * @return {*}
 */
export const findCategoryByIdAPI = (categoryId = "1-2") => { 
    return httpInstance({
        url: '/content/movieCategory/getmovieCategory',
        params: {
            categoryId
        }
    })
}






export const getLikeListAPI = ({limit = 4}) => {
    return httpInstance({
        url: '/goods/relevant',
        params: {
            limit
        }
    })
}